package com.kingwang.training.designpattern.principles.ocp.bo;

import lombok.Data;

/**
 * 正方形
 */
@Data
public class Square implements Shape {
    private Double side;

    @Override
    public Double calculateArea() {
        return this.side * this.side;
    }
}
